// import axios from 'axios'
// import {get,post} from '@/utils/request'
import request from '@/utils/request'
// axios.baseURL = 'http://127.0.0.1:8080'
// axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'



export function getStarApi(query) {
  return request({
    url: '/viewStar/getByUserId',
    method: 'get',
    params:query
  })
}
export function addStarApi(data) {
  return request({
    url: '/star',
    method: 'post',
    data
  })
}
export function checkStarApi(query) {
  return request({
    url: '/star/getByTokAGoodId',
    method: 'get',
    params:query
  })
}
export function deleteStarApi(query) {
  return request({
    url: '/star/delByTokenGoodId',
    method: 'delete',
    params:query
  })
}